package com.zero;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Main {

    public static void main(String[] args) throws InsufficientFundsException {
	// write your code here
        try{
            int a[] = new int[2];
            System.out.println("Access element three :" + a[1]);
        }catch(ArrayIndexOutOfBoundsException e){
            System.out.println("Exception thrown  :" + e);
        }

        CheckingAccount ca = new CheckingAccount(500);
        ca.deposit(500);
        ca.withdraw(600);


    }
}
